package 面向对象_特征3;

public class 面向对象_5_instanceof关键词_判断是否为子类 {
    public static void main(String[] args) {
        面向对象_4_多态1 dx = new 面向对象_4_多态2();
        面向对象_4_多态2 dx1 = new 面向对象_4_多态2();
        dx.print();
        System.out.println(dx instanceof 面向对象_4_多态1);
        System.out.println(dx1 instanceof 面向对象_4_多态2);
    }
}
